package com.shudingke.service.impl;

import com.shudingke.domain.Cart;
import com.shudingke.domain.vo.CartVo;
import com.shudingke.mapper.CartMapper;
import com.shudingke.service.ICartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2022-06-29
 */
@Service
public class CartServiceImpl extends ServiceImpl<CartMapper, Cart> implements ICartService {

    @Autowired
    CartMapper mapper;
    @Override
    public List<CartVo> findAll(int uid, String searchName) {
        return mapper.findAll(uid,searchName);
    }
}
